package cn.sumpu.app.guoguojie.domain.Ext;

import java.io.Serializable;
import java.util.List;

import cn.sumpu.app.guoguojie.constant.Expression;
import cn.sumpu.app.guoguojie.domain.Comment;
import cn.sumpu.app.guoguojie.util.Common;

public class CommentExt extends Comment implements Serializable {
	private static final long serialVersionUID = 6285981343246625210L;
	private String doorplate;
	private String ownerName;// 评论用户的家的昵称
	private String commentUserName;
	private String ownerAvatar;
	private String ownerImageServer;
	private String commentType;
	private String doingContent;
	private String doingOwner;
	private String commentPic;
	
	public String getCommentPic() {
        return commentPic;
    }

    public void setCommentPic(String commentPic) {
        this.commentPic = commentPic;
    }

    public String getCommentType() {
		return commentType;
	}

	public void setCommentType(String commentType) {
		this.commentType = commentType;
	}

	private List<CommentExt> commentAppBaby;
	

	public List<CommentExt> getCommentAppBaby() {
		return commentAppBaby;
	}

	public void setCommentAppBaby(List<CommentExt> commentAppBaby) {
		this.commentAppBaby = commentAppBaby;
	}

	//这条回复的主贴的回复数量
	private Integer commentCount;

	
	public Integer getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(Integer commentCount) {
		this.commentCount = commentCount;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getDoorplate() {
		return doorplate;
	}

	public void setDoorplate(String doorplate) {
		this.doorplate = doorplate;
	}


	public String getCommentUserName() {
		return commentUserName;
	}

	public void setCommentUserName(String commentUserName) {
		this.commentUserName = commentUserName;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public String getOwnerAvatar() {
		return ownerAvatar;
	}

	public void setOwnerAvatar(String ownerAvatar) {
		this.ownerAvatar = ownerAvatar;
	}

	public String getOwnerImageServer() {
		return ownerImageServer;
	}

	public void setOwnerImageServer(String ownerImageServer) {
		this.ownerImageServer = ownerImageServer;
	}

	public String getDoingContent() {
		return doingContent;
	}

	public void setDoingContent(String doingContent) {
		this.doingContent = doingContent;
	}

	public String getDoingOwner() {
		return doingOwner;
	}

	public void setDoingOwner(String doingOwner) {
		this.doingOwner = doingOwner;
	}
    public String getReplaceDoingContent(){
    	return Common.atContentRep(Expression.replaceAll(doingContent));
    }
    public String getRealContent(){
		return Common.parseGuouojUrl(Common.atContentRep(getContent()),commentUserName);
	}

}
